gusucode.com > 支持向量机工具箱 - LIBSVM OSU_SVM LS_SVM源码程序 > 支持向量机工具箱 - LIBSVM OSU_SVM LS_SVM\stprtool\generalp\sgntoi.m

    function  [I] = sgntoi(Y)
%
% [I] = sgntoi(Y)
%
% SGNTOI maps numbers 1 and -1 onto numbers 1 and 2.
%
% See also ITOSGN.
%

I=(3-Y)/2;

return;